package com.itcast.dao;

import com.github.pagehelper.Page;
import com.itcast.pojo.Setmeal;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SetmealDao {
    public void add(Setmeal setmeal);

    public void setSetmealAndCheckgroup(Map map);

    public Page<Setmeal> setFindByCondition(@Param("queryString") String queryString);

    public Setmeal findById(Integer id);

    public List<Integer> findCheckGroupIdsBySetmeal(Integer id);

    public void edit(Setmeal setmeal);

    public Integer findBySetmealId(Integer id);

    public void deleteById(Integer id);

    void deleteAssociation(Integer id);

    List<Setmeal> findAll();

    Setmeal findDetailById(Integer id);

    List<Map<String, Object>> countBySetmealName();
}
